{{template "admin/layout/header_full.html" .}}
<form action="" class="layui-form">
    <button type="button" class="layui-btn layui-btn-lg layui-btn-danger" lay-submit="" lay-filter="clearCache">清空SESSION(谨慎操作)</button>
</form>

<script>
    layui.use('form', function () {
        var form = layui.form;

        form.on('submit(clearCache)', function () {
            $.post("/admin/index/cache", {}, function (result) {
                layer.msg(result.message);
            });
            return false;
        });
    });
</script>
{{template "admin/layout/footer_full.html" .}}